package com.lib.dto.enums;

/**
 * Created by duqingxiang on 17/5/23.
 */
public enum  UserTagsEnums {

    CUSTOMER(0, "租客"),
    AGENT(1, "经纪人");

    private long id;

    private String name;

    UserTagsEnums(long id, String name) {
        this.id = id;
        this.name = name;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static UserTagsEnums valueOf(long id) {
        for (UserTagsEnums type : values()) {
            if (type.id == id) {
                return type;
            }
        }
        return null;
    }


}
